package com.company.beauty.infra.spi.ids;

import lombok.extern.slf4j.Slf4j;

import java.util.Properties;

/**
 * <p>snowflake default handler</p >
 *
 * @author youyoukele
 * @version 1.0
 * @date 2024/2/2 14:00
 */
@Slf4j
public class SnowflakeDefaultHandler implements SnowflakeHandler {

    @Override
    public void init(Properties props) {

    }

    @Override
    public String getType() {
        return "DEFAULT";
    }

    @Override
    public int getWorkerId() {
        log.info("snowflake default handler get worker id 0");
        return 0;
    }
}
